#ifndef __ZTABLAYOUT_H__
#define __ZTABLAYOUT_H__

#include "ZContainer.h"

namespace ZuiLib
{


class ZTabLayout:public ZContainer
{
public:
	ZUI_CLASS_NAME("zui.TabLayout");
	ZTabLayout(void);
	~ZTabLayout(void);


	const char* GetClass() const ZOVERRIDE;
	void* GetInterface(const char* pstrName) ZOVERRIDE;

	bool Add(ZControl* pControl) ZOVERRIDE;
	bool AddAt(ZControl* pControl, int iIndex) ZOVERRIDE;
	bool Remove(ZControl* pControl) ZOVERRIDE;
	void RemoveAll() ZOVERRIDE;
	int  GetCurSel() const;
	bool SelectItem(int iIndex);
	bool SelectItem(ZControl* pControl);

	void SetPos(RECT rc) ZOVERRIDE;

	void SetAttribute(const char* pstrName, const char* pstrValue) ZOVERRIDE;

protected:
	int m_iCurSel;
};

}//namespace

#endif